#include "SMIS_student.h"

using namespace std;

S_student::S_student()
{
	this->id = -1;
}
S_student::~S_student()
{
}

int S_student::getId() const 
{ 
    return id;
}
void S_student::setId(int val) 
{ 
    id = val; 
}

std::string S_student::getName() const 
{ 
    return name;
}
void S_student::setName(std::string val) 
{ 
    name = val;
}

int S_student::getAge() const
{ 
    return age;
}
void S_student::setAge(int val) 
{
    age = val; 
}

std::ostream& operator<<(std::ostream& os, S_student& stu)
{

    
    os << stu.getId() << "     " << stu.getName() << "     " << stu.getAge();

    return os;
}
std::istream& operator>>(std::istream& is, S_student& stu) 
{
    is >> stu.id >> stu.name >> stu.age;
    return is;
}